home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1997 January: Mac OS SDK / Dev.CD Jan 97 SDK2.toast / Development Kits (Disc 2) / OpenDoc Development Framework / ODFDev / Button / Sources / Select.h < prev    next >
Encoding:
Text File  |  1996-09-17  |  1.7 KB  |  59 lines  |  [TEXT/MPS ]

  1. //========================================================================================
  2. //
  3. //    File:                Select.h
  4. //    Release Version:    $ ODF 2 $
  5. //
  6. //    Author:                M.Boetcher
  7. //
  8. //    Copyright:            (c) 1993 - 1996 by Apple Computer, Inc., all rights reserved.
  9. //
  10. //========================================================================================
  11.  
  12. #ifndef SELECT_H
  13. #define SELECT_H
  14.  
  15. // ----- FrameWork Includes -----
  16.  
  17. #ifndef FWSELECT_H
  18. #include "FWSelect.h"
  19. #endif
  20.  
  21. //========================================================================================
  22. //    Forward Declarations
  23. //========================================================================================
  24.  
  25. class CButtonContent;
  26.  
  27. //========================================================================================
  28. //    class CButtonSelection
  29. //========================================================================================
  30.  
  31. class CButtonSelection : public FW_CSelection
  32. {
  33. //----------------------------------------------------------------------------------------
  34. //    Initialization/Destruction
  35. //
  36. public:
  37.     FW_DECLARE_AUTO(CButtonSelection)
  38.     
  39.     CButtonSelection(Environment* ev, CButtonContent* content);
  40.     virtual ~CButtonSelection();
  41.     
  42. //----------------------------------------------------------------------------------------
  43. //    Inherited API
  44. //
  45. public:
  46.     virtual FW_Boolean         IsEmpty(Environment* ev) const;
  47.     virtual void             SelectAll(Environment* ev);
  48.     virtual void             CloseSelection(Environment* ev);
  49.     virtual void             ClearSelection(Environment* ev);
  50.     virtual FW_CContent*    GetSelectedContent(Environment* ev);
  51.     
  52. //----------------------------------------------------------------------------------------
  53. //    Data Members
  54. //
  55. private:
  56.     CButtonContent*         fSelectedContent;
  57. };
  58.  
  59. #endif